import { Base } from '../Base/base'
import {attach} from '../Core/attach'

// 设计模式： 子类仅仅需要传递 数据 - 样式 - 渲染时机
export default class Button extends Base {
    constructor() {
        super()
        this.state = {
            name:'awddadwadawd'
        }
        // console.log('aw');
    }

    ok(){
        console.log('in');
        
    }

    render(){
        return (
            <section class='???' id='cawd' onClick={this.ok}>
                <p>
                    <div1>
                        <h1>Hello!!!!</h1>
                    </div1>
                </p>
            </section>
        )
    }    
}

attach('nameSuspense', Button)